import { Injectable } from '@angular/core';
import { HttpClient } from '../../../providers/httpClient';
import { Config } from '../../../providers/config';

@Injectable()
export class FlowTypeService {
	constructor(
		public httpClient: HttpClient,
		public config: Config
	) { }

	/**
	 * [getFlowTypes 获取所有的流程类型]
	 * @param
	 */
  getFlowTypes(params) {
		let postBody = {
			"module": "OAServer",
			"method": "getFlowTypes",
			"params": {

			}
		};
		return this.httpClient.post(postBody, {
      isShowLoading:true,
      isAlterError:false
    });
	}
}
